package com.lostandfound.service.impl;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lostandfound.dao.PlaceDao;
import com.lostandfound.entity.Place;
import com.lostandfound.service.PlaceService;

@Service("placeService")
@Transactional
public class PlaceServiceImpl implements PlaceService {

	@Autowired
	private PlaceDao placeDao;
	@Override
	public Serializable save(Place obj) {
		return placeDao.save(obj);
	}

	@Override
	public void update(Place obj) {
		placeDao.update(obj);
	}

	@Override
	public void delete(Place obj) {
		placeDao.delete(obj);
	}

	@Override
	public Place selectByPrimary(Long id) {
		return placeDao.selectByPrimary(id);
	}

	@Override
	public void deletePlaceByBranch(Long[] places) {
		placeDao.deletePlaceByBranch(places);
	}

	@Override
	public List<?> getAllPlace() {
		return placeDao.getAllPlace();
	}

	@Override
	public int getCount() {
		return placeDao.getCount();
	}

	@Override
	public List<?> listPlaceByPage(Map<String, Object> pagemap) {
		return placeDao.listPlaceByPage(pagemap);
	}

}
